<?php

echo "<pre>mysql show databases===>\n";
$dbh = new PDO('mysql:host=mysql;dbname=mysql', 'root', 'root');
$sql = "show databases";
$st = $dbh->query($sql);
$rs = $st->fetchAll(PDO::FETCH_COLUMN);
var_dump($rs);
echo "</pre>\n";



echo "<pre>redis get key===>\n";
$redis = new Redis();
$redis->connect('redis');
$redis->sadd('set1', 111);
var_dump($redis->keys('*'));
echo "</pre>\n";


echo "<pre> elasticsearch http://localhost:9200/===>\n";

$res = file_get_contents("http://elasticsearch:9200");
var_dump($res);

echo "</pre>\n";
?>
